/*
 * v1.1 by tonydon site:txdnet.cn
 * netbeansIDE 7.1
 */
package cn.txdnet.txcms.mapper;


import cn.txdnet.txcms.domain.Manager;
import cn.txdnet.txcms.domain.Mgrole;
import java.util.List;
import java.util.Map;
/**
 *
 * @author txdnet
 */
public interface AdminMapper {
   Manager loginQuery(String mgrname);
   int upateBase(Map m);
   int deleteAdmin(int mgrid);
   int makeAdmin(Manager m);
   int countByFactor(Map m);
   List<Map> listByFactor(Map m);
   String queryCids(int mgrid);
   int queryRepeatMgrname(String mgrname);
   int queryRoleId(int mgrid);
   
   int makeRole(Mgrole r);
   int updateRole(Mgrole r);
   int deleteRole(int roleid);
   List<Mgrole> listRole();
   List<Map> listRoleBase();
   Mgrole queryRole(int roleid);
   int countRole();
}
